package la.iok.hzsvn.lewin.movie.operation.model;

import java.util.Objects;

public class PlayRecordParam {
    private Long dmId;
    private Long movieId;
    private String version;
    /**
     * 是否测试开本。测试开本不收费但是会显示水印
     */
    private Integer test;

    public Long getDmId() {
        return dmId;
    }

    public void setDmId(Long dmId) {
        this.dmId = dmId;
    }

    public Long getMovieId() {
        return movieId;
    }

    public void setMovieId(Long movieId) {
        this.movieId = movieId;
    }

    public String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    public Integer getTest() {
        return test;
    }

    public void setTest(Integer test) {
        this.test = test;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        PlayRecordParam param = (PlayRecordParam) o;
        return Objects.equals(dmId, param.dmId) && Objects.equals(movieId, param.movieId) && Objects.equals(version, param.version);
    }

    @Override
    public int hashCode() {
        return Objects.hash(dmId, movieId, version);
    }
}
